package cn.sibu.myroot.listview;

import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;

import java.util.List;

/**
 * Created by 刘红亮 on 15-12-18 上午9:38.
 */
public abstract class SimpleSectionAdapter<T> extends BaseAdapter implements AdapterView.OnItemClickListener {

    //为每个视图类型定义常量
    private static final int TYPE_HEADER  =0;
    private static final int TYPE_ITEM = 1;

    private LayoutInflater mLayoutInflater;
    private int mHeaderResource;
    private int mItemResource;

    //所有节的唯一集合
    private List<SectionItem<T>> mSections;

    //节的分组,按其初始位置设置键

    private SparseArray<SectionItem<T>> mKeySections;

    @Override
    public int getCount() {
        return 0;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        return null;
    }

    @Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {

    }
}
